import Vue from "vue";
import Vuex from 'vuex'

Vue.use(Vuex)

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 01397fd916f4be147ca495dafb96625c2c5220db
const store = new Vuex.Store({
    state:{
        singer:{}
    },
    mutations:{
        saveSinger(state,s){
            state.singer = s
        }
    },
    actions:{
        saveSinger(context,singer){
            //actions提交(commit)mutations
            context.commit('saveSinger',singer);
        }
    }
<<<<<<< HEAD
})
export default store
=======
<<<<<<< HEAD
export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
=======
const store = new Vuex.Store({
  state: {
    //在歌手列表页和歌手详情页之间传递歌手的信息

  },
  mutations: {

  },
  actions: {

  }
})
export default store
>>>>>>> 8b1caf6 (热门歌曲)
>>>>>>> 53f4939bc547b2471ee979ef8d2248c82943ff20
=======
})
export default store
>>>>>>> 01397fd916f4be147ca495dafb96625c2c5220db
